<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>图片连续向上滚动</title>
<link rel="stylesheet" href="css/pages.css" type="text/css" media="screen" />
</head>

<body>

<div class="links">
   <div style="float:left;"><h3>合作媒体</h3></div>
   <div id="scroll_logo2">
     <div id="pic_box">
        <a href="#"><img src="images/sina.jpg" /></a><br />    
        <a href="#"><img src="images/taobao.gif" /></a><br />    
        <a href="#"><img src="images/pchome.gif" /></a><br />
        <a href="#"><img src="images/it168.gif" /></a><br />
        <a href="#"><img src="images/itcom.gif" /></a><br />	
        <a href="#"><img src="images/163.jpg" /></a><br />
     </div>
     <div id="pic_box_b"></div>
   </div> 
</div>
  
<script language="javascript" type="text/javascript">
var speed=30;
pic_box_b.innerHTML = pic_box.innerHTML;
function marquee(){
	if(pic_box_b.offsetTop - scroll_logo2.scrollTop <= 0) {
		scroll_logo2.scrollTop -= pic_box.offsetHeight;
	} else {
		scroll_logo2.scrollTop++;
	}
}
var myMar = setInterval(marquee,speed);
scroll_logo2.onmouseover = function() {
	clearInterval(myMar);
} 
scroll_logo2.onmouseout = function(){
	myMar = setInterval(marquee,speed)
}
</script>
</body>
</html>
